import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '../components/cyc/HelloWorld'
import Login from '../components/zlx/Login'

import MainWindow from '../components/MainWindow'
import UserCard from '../components/FW/UserCard'

// import Login from '../components/zlx/Login'
import Register from '../components/zlx/Register'
import Test from '../components/zlx/Test'

import IdentifyCode from '../components/zlx/components/IdentifyCode'
import MyCard from "../components/FW/MyCard";



Vue.use(Router)

export default new Router({
  routes: [{
      path: '/helloworld',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/login',
      name: 'Login',
      component: Login,
      meta: {
        notNeedLogin: true
      }
    },
    {
      path: '/app',
      name: 'app',
      component: MainWindow
    },
    {
      path: '/usercard',
      name: 'usercard',
      component: UserCard
    },
    {
      path: '/mycard',
      name: 'mycard',
      component: MyCard
    },
    {
      path: '/identifycode',
      name: 'IdentifyCode',
      component: IdentifyCode
    },
    {
      path: '/register',
      name: 'Register',
      component: Register,
      meta: {
        notNeedLogin: true
      }
    },
    {
      path: '/test',
      name: 'Test',
      component: Test
    }
  ]
})
